﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace KQ.DCMMP.Common
{
    public static class DefaultScheduleTypes
    {
        public const string OneTime = "ONETIME";
        public const string Everyday = "EVERYDAY";
        public const string EveryWeek = "EVERYWEEK";
        public const string EveryMonth = "EVERYMONTH";
        public const string EveryYear = "EVERYYEAR";

        public static bool IsOneTime(string extensionType)
        {
            return string.Equals(extensionType, OneTime, StringComparison.OrdinalIgnoreCase);
        }

        public static bool IsEveryday(string extensionType)
        {
            return string.Equals(extensionType, Everyday, StringComparison.OrdinalIgnoreCase);
        }

        public static bool IsEveryWeek(string extensionType)
        {
            return string.Equals(extensionType, EveryWeek, StringComparison.OrdinalIgnoreCase);
        }

        public static bool IsEveryMonth(string extensionType)
        {
            return string.Equals(extensionType, EveryMonth, StringComparison.OrdinalIgnoreCase);
        }

        public static bool IsEveryYear(string extensionType)
        {
            return string.Equals(extensionType, EveryYear, StringComparison.OrdinalIgnoreCase);
        }
    }
}
